package com.qdlc.p2p.biz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.qdlc.p2p.biz.service.ExperienceCollectionService;
import com.qdlc.p2p.dal.dao.ExperienceCollectionDao;

@Repository("experienceCollectionService")
public class ExperienceCollectionImpl implements ExperienceCollectionService {

    @Resource
    private ExperienceCollectionDao experienceCollectionDao;

    @Override
    public double sumCollectionExperienceCapital(long collectionId) {
        return experienceCollectionDao.sumCollectionExperienceCapital(collectionId);
    }

    @Override
    public List<Object[]> getCollectionExperienceCapital(long collectionId) {
        return experienceCollectionDao.getCollectionExperienceCapital(collectionId);
    }
}
